FROM alpine:3.4

WORKDIR /root
RUN apk add --no-cache alpine-sdk && \
  wget http://downloads.sourceforge.net/project/wput/wput/0.6.1/wput-0.6.1.tgz && \
  tar -xvf wput-0.6.1.tgz && \
  cd wput-0.6.1 && \
  mkdir -p /usr/local/share/man/ &&\
  ./configure; make && \
  make install && \
  apk del alpine-sdk && \
  cd .. && \
  rm -r wput-0.6.1 && \
  rm wput-0.6.1.tgz

ENTRYPOINT ["wput"]
